import globals from "globals";
import pluginVue from "eslint-plugin-vue";

export default [
  {
    languageOptions: {
      globals: globals.browser,
    },
  },
  ...pluginVue.configs["flat/essential"],
  {
    files: ["**/*.vue"],
    languageOptions: {
      parserOptions: {
        parser: "@babel/eslint-parser",
        requireConfigFile: false,
      },
    },
  },
  {
    rules: {
      "vue/no-v-model-argument": "off",
    },
  },
];